<%content_for(:ancillaries) do%>
<div id="ancillary">
    <div class="block">
        <h2>Recent Entries</h2>
        <ul class="list">
        	<% for entry in @recent_entries %>
            <li>
            	<%= link_to entry.title, entry_show_url(:id => entry)%>
            </li>
            <% end %>
        </ul>
    </div>
    <div class="block">
        <h2>Archives</h2>
        <ul class="list">
        	<% if @archives %>
        	<% for archive in @archives %>
            <li>
                <%= link_to archive.strftime("%Y-%B"), index_url(:year => archive.year, :month => archive.mon) %>
            </li>
            <% end %>
            <% end %>
        </ul>
    </div>
    <div class="block">
        <h2>Recent Comments</h2>
        <ul class="list">
        	<% if @recent_comments %>
        	<% for comment in @recent_comments %>
            <li>
                <%= h comments.body %>
            </li>
            <% end %>
            <% end %>
        </ul>
        <h2>Administration</h2>
        <ul class="list">
        	<% if controller.current_user %>
        	<li><%= link_to 'Dashboard', admin_url %></li>
        	<li><%= link_to 'Logout', logout_url %></li>
        	<% else %>
        	<li><%= link_to 'Login', login_url %></li>
        	<li><%= link_to 'Signup', signup_url %></li>
        	<% end %>
        </ul>
    </div>
    <div class="clear">
    </div>
</div>
<!--[END]#ancillary-->
<%end%>